﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.IRmCust _iRmCust;

        public static IRmCust CreateRmCust()
        {
            if (_iRmCust == null)
            {
                string className = GlobalConfig.RtSystemPath + ".RM.RmCust_Sys";
                _iRmCust = (IRmCust)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iRmCust;
        }
    }

    public interface IRmCust
    {
           DataTable GetCustData(String Where);
           bool UpdateCustData(DataTable dt);
    }
}
